<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
	</body>
	<script type="text/javascript">
		function xfz(){
			this.toString=function(){
				return 0;
			}
		}
	
//		方法的重写
		Array.prototype.valueOf=function(){
			return new xfz();
		}

		Array.prototype.toString=function(){
			return 1;
		}
	
//		var a=[""];
//		console.log(a==false);

		var cmd=new xfz();
		console.log(cmd==false);
	</script>
</html>
